<nav aria-label="Page navigation" *ngIf="TotalPageCount>1">
    <ul class="pagination pagination-sm">
        <li>
            <a href="javascript:void(0)" aria-label="Previous" (click)="previous_click()">
                <span aria-hidden="true">&laquo;</span>
            </a>
        </li>
        <li [ngClass]="{'active':PageIndex==item}" *ngFor="let item of TotalPage">
            <a href="javascript:void(0)" (click)="page_click(item)">{{item}}</a>
        </li>
        <li>
            <a href="javascript:void(0)" aria-label="Next" (click)="next_click()">
                <span aria-hidden="true">&raquo;</span>
            </a>
        </li>
    </ul>
</nav>